package com.tx.entity;
/**
 * @Author: tcx
 * @description: 博客评论实体类
 * @Date: 2019/11/13
 **/
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;


public class Comment {
    private Integer cId;//评论id
    private String cContent;//评论内容
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cCreateTime;//评论时间
    private Integer bId;//所属博客
    private Integer uId;//发表用户
    private Integer cOtherId;//回复用户
    private Integer cState;//评论状态：0-已读，1-未读
    private User user;
    private Blog blog;

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcContent() {
        return cContent;
    }

    public void setcContent(String cContent) {
        this.cContent = cContent;
    }

    public Date getcCreateTime() {
        return cCreateTime;
    }

    public void setcCreateTime(Date cCreateTime) {
        this.cCreateTime = cCreateTime;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getcState() {
        return cState;
    }

    public void setcState(Integer cState) {
        this.cState = cState;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public Integer getcOtherId() {
        return cOtherId;
    }

    public void setcOtherId(Integer cOtherId) {
        this.cOtherId = cOtherId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "cId=" + cId +
                ", cContent='" + cContent + '\'' +
                ", cCreateTime=" + cCreateTime +
                ", bId=" + bId +
                ", uId=" + uId +
                ", cOtherId=" + cOtherId +
                ", cState=" + cState +
                ", user=" + user +
                ", blog=" + blog +
                '}';
    }
}
